<?php
// +----------------------------------------------------------------------
// | Name 风音框架
// +----------------------------------------------------------------------
// | Author 唐启云 <tqy@fxri.net>
// +----------------------------------------------------------------------
// | Copyright Copyright © 2016-2099 方弦研究所. All rights reserved.
// +----------------------------------------------------------------------
// | Link https://www.fxri.net
// +----------------------------------------------------------------------
$param = \fxapp\Client::param();
$param['base'] = \fxapp\Base::json($param['base'] ?? null, 'decode');

/**
 * 环境配置
 * @return array
 */
return [
    // 基础配置
    'base' => [
        // 显示
        'view' => $param['base']['view'] ?? ($_SERVER['HTTP_VIEW'] ?? null),
        // 格式
        'format' => $param['base']['format'] ?? ($_SERVER['HTTP_FORMAT'] ?? null),
    ],
    // 用户配置
    'user' => [
        // 令牌
        'token' => $param['base']['token'] ?? ($_SERVER['HTTP_TOKEN'] ?? null),
    ],
];
